<?php

use Illuminate\Routing\Router;

/**
 * 收藏夹路由
 *
 * @category   Module name
 * @package    PSR
 * @subpackage Documentation\API
 * @author     zhouyang  <zhouyang@haohaozhu.com>
 * @license    GPL http://www.haohaozhu.com
 * @link       http://www.haohaozhu.com
 */

Route::group([
    'prefix' => 'admin/ideabook',
    'namespace' => 'Frieza\\Modules\\Ideabook\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    // 收藏夹搜索
    $router->get('/search', 'SearchController@index');

    //灵感集管理
    $router->get('/index', 'IdeaBookController@index');
    $router->get('/getoption', 'IdeaBookController@getOption');

    $router->put("/index/{id}", "IdeaBookController@remark"); // 备注添加
    $router->post("/editElite", "IdeaBookController@editElite"); // 更改精华状态
    $router->post("/editIdeaBook", "IdeaBookController@editIdeaBook"); // 更改灵感集状态


    $router->post("/notifyIdeaBook", "IdeaBookController@notifyIdeaBook"); // 私信通知-用户内容被选用
});
